<template>
  <div>
    <div style="height:60px;"></div>
    <el-container>
      <el-aside width="auto">
        <el-menu default-active="" class="el-menu-vertical-demo" :router=true>
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-s-home"></i>
              <span slot="title">首页</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminSwiper">轮播图</el-menu-item>
              <el-menu-item index="/AdminService">业务领域</el-menu-item>
              <el-menu-item index="/AdminAbout">公司简介</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-document"></i>
              <span slot="title">案例中心</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminList">案例管理</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/AdminCase">新建案例</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-s-custom"></i>
              <span slot="title">专家库</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminExpert">专家管理</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="4">
            <template slot="title">
              <i class="el-icon-edit"></i>
              <span slot="title">新闻&公告</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminNewsList">新闻公告管理</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/AdminLunchNews">新建新闻</el-menu-item>
            </el-menu-item-group>
            <el-menu-item-group>
              <el-menu-item index="/AdminLunchNotice">新建公告</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="5">
            <template slot="title">
              <i class="el-icon-folder-opened"></i>
              <span slot="title">开放资源</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminSource">资源增删</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="6">
            <template slot="title">
              <i class="el-icon-chat-dot-round"></i>
              <span slot="title">留言</span>
            </template>
            <el-menu-item-group>
              <el-menu-item index="/AdminMessage">留言管理</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: 'Admin',
  data () {
    return {
      isCollapse: false
    }
  },
  methods: {
  }
}
</script>

<style scoped>
.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}
.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
